package com.lxyk.yygh.hosp.repository;

import com.lxyk.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @ClassName DepartmentRepository
 * @Description TODO
 * @Author FJQ
 * @Date 2022/12/27 21:54
 * @Version 1.0
 **/

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

    /**
     * 上传科室信息
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
